<table class="{$MenuCode}">
 <tr>
  {foreach from=$ClientMenu.$MenuCode item=curr key=key name="bmenu"}
   <td class="item{if $curr.currItem == 'y'} curr{/if}"{if $MenuCode == 'topmenu' && $curr.submenu|@count > 0} rel="{$curr.id}" tp="v"{/if}><a href="{eval var=$curr.link|unescape}">{$curr.title}</a></td>
   {if $smarty.foreach.bmenu.last neq true}
   <td class="delim"></td>
   {/if}
  {/foreach}
 </tr>
</table>